package com.threeti.jiayusms.infrastructure.defaulttemplate;

import org.hibernate.SessionFactory;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.threeti.jiayusms.domain.model.defaulttemplate.VoiceTemplateMapping;
import com.threeti.jiayusms.framework.dao.AbstractCustomKeyDao;

@Repository
public class VoiceTemplateMappingDaoImpl extends AbstractCustomKeyDao<String, VoiceTemplateMapping> implements VoiceTemplateMappingDao {
  @Autowired
  public VoiceTemplateMappingDaoImpl(SessionFactory sessionFactory) {
    super(sessionFactory);
  }
  
  @Override
  protected DetachedCriteria buildDefaultCriteria() {
    return DetachedCriteria.forClass(VoiceTemplateMapping.class);
  }

}
